package com.platform.mq.kafka.config;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.stereotype.Component;

import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Component
@ConditionalOnProperty(prefix = "config.kafka", name="enabled", havingValue="true", matchIfMissing = true)
public @interface KafkaAutoConfig {
}
